import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import InviteAlliance from "./pages/h5/invite-alliance";
// import ExpertAlliance from "./pages/h5/expert-alliance";
import CompanyAlliance from "./pages/h5/company-alliance";
import reportWebVitals from './reportWebVitals';
import AgreementContent from "./pages/h5/agreement-content";
import ReceiptContent from "./pages/h5/receipt-content";
import {HashRouter,Route,Redirect,Switch} from "react-router-dom";
import 'antd-mobile/dist/antd-mobile.css';  // or 'antd-mobile/dist/antd-mobile.less'


ReactDOM.render(
  <HashRouter>
  <main>
      <Switch>
          <Route path="/h5-allian" exact component={InviteAlliance}/>
          <Route path="/h5-company-allian" exact component={CompanyAlliance}/>
          <Route path="/h5-agreement-content" exact component={AgreementContent}/>
          <Route path="/h5-receipt-content" exact component={ReceiptContent}/>
          <Redirect to='/h5-allian' />
      </Switch>
  </main>
</HashRouter>
,
  document.getElementById('root')
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
